/**
 * 组件参数说明
 *    images 展示图片
 *    text 展示文字
 */
import React, { Component } from 'react'
import emptyImg from "../../assets/images/emptyImg.png";
import "./not-emptys.less"; 

class NotEmptys extends Component {

  render() {
    const images = this.props.images || emptyImg;
    const text = this.props.text || "当前页面空空如也"
    return (
      <div className="not-empty">
        <img src={images} alt="NotEmptys" />
        <p>{text}</p>
      </div>
    )
  }
}

export default NotEmptys